package com.future.domain;


import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("collection")
@Alias("MyCollection")  // 手动指定别名，避免与java.util.Collection冲突
public class Collection {
    private Long id;
    private String targetType;
    private Long targetId;
    private Long userId;
    private LocalDateTime createdAt;
    private Integer isDeleted;
}